import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'redirect',
      component: () => import('./views/redirect.vue')
    },
    {
      path: '/app',
      name: 'app',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/paths.vue')
    },
    {
      path: '/web',
      name: 'web',
      component: () => import(/* webpackChunkName: "about" */ './views/web-paths.vue')
    }
  ]
})

router.beforeEach((to, from, next) => {
  next();
})

export default router
